<!DOCTYPE html>
<html lang="zh-cmn-Hans" xmlns:th="http://www.thymeleaf.org">
<head th:replace="manage/common/head"></head>

<body>

<section id="container">
    <!--头部-->
    <header th:replace="manage/common/header"></header>

    <!-- 菜单栏 -->
    <aside th:replace="manage/common/aside"></aside>

    <!--主要内容 -->
    <section id="main-content">
        <section class="wrapper">
            <!-- page start-->
            <div class="row">
                <div class="col-sm-8">
                    <section class="panel">
                        <header th:replace="manage/common/box-header"></header>
                        <div class="panel-body">
                            BLZO v1.2.0 新版管理后台 欢迎体验
                            <hr>
                            TODO:
                            <ul>
                                <li>
                                    进入页面后，左侧菜单要有高亮标记
                                </li>
                                <li>
                                    权限、菜单管理页面太丑
                                </li>
                                <li>
                                    菜单图标设置
                                </li>
                                <li>
                                    more
                                </li>
                            </ul>

                        </div>
                    </section>
                </div>
                <div class="col-sm-4">
                    <section class="panel" th:if="${moreMenu!=null}">
                        <header class="panel-heading">
                            提醒
                            <span class="tools pull-right">
                            <a href="javascript:;" class="fa fa-chevron-down"></a>
                            <a href="javascript:;" class="fa fa-times"></a>
                         </span>
                        </header>
                        <div class="panel-body">
                            您的菜单尚未配置完成，前往
                            <a class="btn btn-info" th:href="@{${'/manage/mine/layer/modify'}}">
                                配置菜单
                            </a>
                            或者点击
                            <a class="btn btn-info delete" id="layer-init">
                                初始化菜单
                            </a>
                        </div>
                    </section>
                    <section class="panel">
                                            <header class="panel-heading">
                                                提醒
                                                <span class="tools pull-right">
                                                <a href="javascript:;" class="fa fa-chevron-down"></a>
                                                <a href="javascript:;" class="fa fa-times"></a>
                                             </span>
                                            </header>
                                            <div class="panel-body" th:if="${#strings.isEmpty(obj.googleSecret)}">
                                                强烈建议使用google身份校验进行登录,更安全!
                                                <a class="btn btn-info" th:href="@{${'/manage/mine/setting/google_auth'}}">
                                                   前往设置
                                                </a>
                                            </div>
                                            <div class="panel-body" th:if="${!#strings.isEmpty(obj.googleSecret)}">
                                                您已启用google身份校验,您可以
                                                <a class="btn btn-info" th:href="@{${'/manage/mine/setting/google_auth'}}">
                                                   重新设置(覆盖)
                                                </a>
                                                <a class="btn btn-info" id="remove-google-auth">
                                                   取消使用(使用密码登陆)
                                                </a>
                                            </div>
                                        </section>
                    <section class="panel">
                        <header class="panel-heading">
                            <span th:text="${obj.nickName}"></span> - 欢迎使用
                            <span class="tools pull-right">
                            <a href="javascript:;" class="fa fa-chevron-down"></a>
                            <a href="javascript:;" class="fa fa-times"></a>
                         </span>
                        </header>
                        <div class="panel-body">
                            上次登录时间 <span th:text="${#dates.format(obj.lastTime, 'yyyy-MM-dd HH:mm:ss')}"></span>
                            <br><br>
                            上次登录地点 <span th:text="${obj.lastIp}"></span>
                        </div>
                    </section>
                    <section class="panel">
                        <header class="panel-heading">
                            快捷入口
                            <span class="tools pull-right">
                            <a href="javascript:;" class="fa fa-chevron-down"></a>
                            <a href="javascript:;" class="fa fa-times"></a>
                         </span>
                        </header>
                        <div class="panel-body">
                            <a class="btn btn-info"
                               th:href="@{${'/manage/mine/setting/basic'}}">
                                修改个人信息
                            </a>
                            <a class="btn btn-info"
                               th:href="@{${'/manage/mine/setting/password'}}">
                                修改密码
                            </a>
                        </div>
                    </section>

                </div>
            </div>


            <!-- page end-->
        </section>
    </section>

    <!--右侧边栏 -->
    <div th:replace="manage/common/right-sidebar"></div>

</section>


<!-- external javascript -->
<div th:replace="manage/common/script"></div>
<script type="text/javascript" src="/manage/custom/page/index.js"></script>
<script>
    window.onload = function () {

        var index = new window.controller.Index();

        index.init();

    };
</script>
</body>
</html>
